import React from 'react'
import style from './basic.scss'

export const CostTime = ({ alwayVisible, elapse = 0, prefix = '' }) => {
    if (elapse || alwayVisible) {
        return <span className={style.time}>{prefix}{elapse}ms</span>
    } else {
        return null
    }

}